<script type="text/javascript" lang="javascript">
jQuery(document).ready(function () {
	/*********************
		Custom function and addition
	*********************/ 
	
});/*EOF jQuery*/
</script>
<h2><?php echo $cont_title; ?></h2>
<?php $this->load->view('admin_messages',$msg_info); ?>

<form action="<?php __e($frm_action);?>" method="post" name="<?php __e($frm_name);?>" id="<?php __e($frm_name);?>" class="frmreg" enctype="multipart/form-data">
  
  <div class="dsh_hd_sum" align="right">
    <span>Browse: </span><a href="<?php __e(site_url('journals/search'));?>">Journals (36)</a> <span>|</span> <a href="#">Subjects (16)</a>    
  </div>
  <div class="dsh_hd_sum" align="right">
    <span>Member Expiry: </span><a href="#">(<i><?php __e($exp_date);?></i>)</a>
  </div>
  <br/><br/>
  
  <div class="dsh_hd_info" align="right">
    <span class="spn">Overall Stats: </span><span>(From <?php __e($dt_from);?> to <?php __e($dt_to);?>)</span>
    <a href="javascript:;" onclick="javascript:$('.hd_sec_1').toggle();">(show/hide)</a>
  </div>  
  <br/>
  <div class="hd_sec_1">
  <br/>
  <table width="100%" class="tables_sample1 mytables" id="myTable" border="0">
    <thead>
      <tr class="th">
        <th align="left" width="1%">&nbsp;</th>
        <th align="left" width="73%">Most Read Article (Full Text)</th>
        <th align="left" width="25%">No. Of Downloads</th>
        <th align="left" width="1%">&nbsp;</th>
      </tr>
      <?php foreach ($stats_most_read as $key => $val){ ?>
      <tr class="trbottomhr pane">
        <td align="left" valign="top">&nbsp;</td>
        <td align="left" valign="top"><a href="<?php __e(site_url('journals/contents_list/'.$val['jid']));?>" title="<?php __e($val['name']);?>"><?php __display_data($val['name']);?></a></td>
        <td align="left" valign="top"><?php __display_data($val['cnt']);?></td>
        <td align="left" valign="top">&nbsp;</td>
      </tr>
      <?php } ?>
      
    </thead>  
  </table>
  <br/>
  <table width="100%" class="tables_sample1 mytables" id="myTable" border="0">
    <thead>
      <tr class="th">
        <th align="left" width="1%">&nbsp;</th>
        <th align="left" width="73%">Most Read Publication (Full Text)</th>
        <th align="left" width="25%">No. Of Downloads</th>
        <th align="left" width="1%">&nbsp;</th>
      </tr>
    </thead>
    <?php foreach ($stats_most_read_pub as $key => $val){ ?>
    <tr class="trbottomhr pane">
      <td align="left" valign="top">&nbsp;</td>
      <td align="left" valign="top"><?php __display_data($val['name']);?></td>
      <td align="left" valign="top"><?php __display_data($val['cnt']);?></td>
      <td align="left" valign="top">&nbsp;</td>
    </tr>
    <?php } ?>
  </table>
  <br/>  
  <table width="100%" class="tables_sample1 mytables" id="myTable" border="0">
    <thead>
      <tr class="th">
        <th align="left" width="1%">&nbsp;</th>
        <th align="left" width="73%">Most Visited Publication</th>
        <th align="left" width="25%">No. Of Hits</th>
        <th align="left" width="1%">&nbsp;</th>
      </tr>
    </thead>
    <?php foreach ($stats_most_vis_pub as $key => $val){ ?>
    <tr class="trbottomhr pane">
      <td align="left" valign="top">&nbsp;</td>
      <td align="left" valign="top"><?php __display_data($val['name']);?></td>
      <td align="left" valign="top"><?php __display_data($val['cnt']);?></td>
      <td align="left" valign="top">&nbsp;</td>
    </tr>
    <?php } ?>  
    
  </table>
  </div>
    
  <br/>  
  <div class="dsh_hd_info" align="right">
    <span class="spn">Additions: </span><a href="javascript:;" onclick="javascript:$('.hd_sec_2').toggle();">(show/hide)</a>
  </div>
  <br/>
  <div class="hd_sec_2">
  <table width="100%" class="tables_sample1 mytables" id="myTable" border="0">
    <thead>
      <tr class="th">
        <th align="left" width="1%">&nbsp;</th>
        <th align="left" width="98%">New Publications</th>
        <th align="left" width="1%">&nbsp;</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach ($new_pub as $key => $val){ ?>
      <tr class="trbottomhr pane">
        <td align="left" valign="top">&nbsp;</td>
        <td align="left" valign="top"><?php __display_data($val['name']);?></td>
        <td align="left" valign="top">&nbsp;</td>
      </tr>
      <?php } ?>
    </tbody>    
  </table>
  </div>
  <br/>  
  <?php /*
  <div class="dsh_hd_info" align="right">
    <span class="spn">During the period: </span><span>(From 5-February-2012 to till date)</span>
    <a href="javascript:;" onclick="javascript:$('.hd_sec_3').toggle();">(show/hide)</a>
  </div>
  <div class="hd_sec_3">
  <br/>
  <table width="100%" class="tables_sample1 mytables" id="myTable" border="0">
    <thead>
      <tr class="th">
        <th align="left" width="1%">&nbsp;</th>
        <th align="left" width="98%">6 issues uploaded</th>
        <th align="left" width="1%">&nbsp;</th>
      </tr>
    </thead>    
  </table>
  </div>
  <br/>
  */ ?>
  
  <div class="dsh_hd_info" align="right">
    <span class="spn">Favourite List</span>
    <a href="javascript:;" onclick="javascript:$('.hd_sec_fav').toggle();">(show/hide)</a>
  </div>  
  <div class="hd_sec_fav">
  <br/>
  <table width="100%" class="tables_sample1 mytables" id="myTable" border="0">
    <thead>
      <tr class="th">
        <th align="left" width="1%">&nbsp;</th>
        <th align="left" width="43%">Journals(Full Text)</th>
        <th align="left" width="33%">ISSN No.</th>
        <th align="left" width="15%">Alerts</th>
        <th align="left" width="1%">&nbsp;</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach ($j_fav_list as $key => $val){ ?>
      <tr class="trbottomhr pane">
        <td align="left" valign="top">&nbsp;</td>
        <td align="left" valign="top"><a href="<?php __e(site_url('journals/contents_list/'.$val['os_journals_id']));?>" title="<?php __e($val['os_journals_title']);?>"><?php __e($val['os_journals_title']);?></a></td>
        <td align="left" valign="top"><?php __e($val['os_journals_issn']);?></td>
        <td align="left" valign="top">Active</td>
        <td align="left" valign="top">&nbsp;</td>
      </tr>
      <?php } ?>
    </tbody>    
  </table>
  </div>
  <br/><br/>
  <div class="dsh_hd_info" align="right">
    <span class="spn">Alerts Added for Journals/Articles</span>
    <a href="javascript:;" onclick="javascript:$('.hd_sec_alert').toggle();">(show/hide)</a>
  </div>  
  <div class="hd_sec_alert">
  <br/>
  <table width="100%" class="tables_sample1 mytables" id="myTable" border="0">
    <thead>
      <tr class="th">
        <th align="left" width="1%">&nbsp;</th>
        <th align="left" width="43%">Journals(Full Text)</th>
        <th align="left" width="33%">ISSN No.</th>
        <th align="left" width="15%">Alerts</th>
        <th align="left" width="1%">&nbsp;</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach ($j_alert_list as $key => $val){ ?>
      <tr class="trbottomhr pane">
        <td align="left" valign="top">&nbsp;</td>
        <td align="left" valign="top"><a href="<?php __e(site_url('journals/contents_list/'.$val['os_journals_id']));?>" title="<?php __e($val['os_journals_title']);?>"><?php __e($val['os_journals_title']);?></a></td>
        <td align="left" valign="top"><?php __e($val['os_journals_issn']);?></td>
        <td align="left" valign="top">Active</td>
        <td align="left" valign="top">&nbsp;</td>
      </tr>
      <?php } ?>
    </tbody>    
  </table>
  </div>
</form>
